$(function(){
  var myurl = window.location.href;
  var i = '';
  console.log(myurl.indexOf('quanw'));
  if(myurl.indexOf('qiy') !== -1){
    i = 'qiy';
  }else if(myurl.indexOf('dians') !== -1){
    i = 'dians';
  }else if(myurl.indexOf('yinx') !== -1){
    i = 'yingx';
  }else if(myurl.indexOf('app2') !== -1){
    i = 'App';
  }else if(myurl.indexOf('wx_gzh') !== -1){
    i = 'wx_gzh';
  }else if(myurl.indexOf('wx_xch') !== -1){
    i = 'wx_xcx';
  }else if(myurl.indexOf('quanw') !== -1){
    i = 'quanw';
  }
  
  
  // 初始化数据
  var data = {
    qiy:[
      {
        o:'qiy',
        img:'qiye_1.png',
        name:'企业展示推广版',
        url_web:'http://jiajutgabc.w.dlszyht.com.cn/self_define/phone.php?username=jiajutgabc&notech=1?notech=1',
        url_pc:'http://jiajutgabc.w.dlszyht.com.cn/vip_jiajutgabc.html?notech=1',
      },
      {
        o:'qiy',
        img:'qiye_2.png',
        name:'顾家兴族',
        url_web:'http://www.gujiadoors.com/self_define/phone.php?username=gujiadoors&notech=1?notech=1?notech=1?notech=1',
        url_pc:'http://www.gujiadoors.com/?notech=1',
      },
      {
        o:'qiy',
        img:'qiye_3.png',
        name:'金富源装饰',
        url_web:'http://osnt_11.pc.goabc.cn/vip_osnt_11.html',
        url_pc:'http://osnt_11.pc.goabc.cn/vip_osnt_11.html',
      },
      {
        o:'qiy',
        img:'qiye_4.png',
        name:'ZH设计',
        url_web:'http://www.jhzhdesign.com/self_define/phone.php?username=zhihansheji&notech=1?notech=1',
        url_pc:'http://www.jhzhdesign.com/vip_zhihansheji.html?notech=1',
      },
      {
        o:'qiy',
        img:'qiye_5.png',
        name:'凡可味',
        url_web:'http://www.farawaychicken.com/',
        url_pc:'http://www.farawaychicken.com/',
      },
      {
        o:'qiy',
        img:'qiye_6.png',
        name:'守藏品',
        url_web:'http://jiajutgabc.w.dlszyht.com.cn/self_define/phone.php?username=jiajutgabc&notech=1?notech=1',
        url_pc:'http://jiajutgabc.w.dlszyht.com.cn/vip_jiajutgabc.html?notech=1',
      },
      {
        o:'qiy',
        img:'qiye_7.png',
        name:'福洛斯',
        url_web:'http://www.flosjc.com/',
        url_pc:'http://www.flosjc.com/',
      },
      {
        o:'qiy',
        img:'qiye_8.png',
        name:'澳美基业',
        url_web:'http://jiajutgabc.w.dlszyht.com.cn/self_define/phone.php?username=jiajutgabc&notech=1?notech=1',
        url_pc:'http://jiajutgabc.w.dlszyht.com.cn/vip_jiajutgabc.html?notech=1',
      },
    ],
    dians:[
      {
        o:'shangc',
        img:'shang_1.png',
        name:'家具商城',
        url_web:'http://jiajuabc.w.dlszyht.com.cn/self_define/phone.php?username=jiajuabc&notech=1?notech=1?notech=1?notech=1?notech=1?notech=1?notech=1',
        url_pc:'http://jiajuabc.w.dlszyht.com.cn/vip_jiajuabc.html?notech=1',
      },
      {
        o:'shangc',
        img:'shang_2.png',
        name:'分销商城',
        url_web:'http://fenxiao.evyundata.net.cn/self_define/phone.php?username=fenxiaoabc&notech=1?notech=1?notech=1?notech=1?notech=1',
        url_pc:'http://fenxiao.evyundata.net.cn/?notech=1',
      },
      {
        o:'shangc',
        img:'shang_3.png',
        name:'批发商城',
        url_web:'http://pifademo.w.dlszyht.com.cn/self_define/phone.php?username=pifademo&notech=1?notech=1?notech=1?notech=1?notech=1?notech=1?notech=1',
        url_pc:'chrome-extension://mcbpblocgmgfnpjjppndjkmgjaogfceg/fsCaptured.html',
      },
      {
        o:'shangc',
        img:'shang_4.png',
        name:'天知网',
        url_web:'http://837618982.w.dlszyht.com.cn/self_define/phone.php?username=837618982&notech=1?notech=1?notech=1?notech=1?notech=1?notech=1?notech=1',
        url_pc:'http://837618982.w.dlszyht.com.cn/vip_837618982.html?notech=1',
      },
      {
        o:'shangc',
        img:'shang_5.png',
        name:'京西商城',
        url_web:'http://feaokbuy.w.dlszyht.com.cn/self_define/phone.php?username=feaokbuy&notech=1?notech=1?notech=1?notech=1?notech=1?notech=1?notech=1',
        url_pc:'http://feaokbuy.w.dlszyht.com.cn/vip_feaokbuy.html?notech=1',
      },
      {
        o:'shangc',
        img:'shang_6.png',
        name:'敏缘优选',
        url_web:'http://mfyg520.w.dlszyht.com.cn/self_define/phone.php?username=mfyg520&notech=1?notech=1',
        url_pc:'http://mfyg520.w.dlszyht.com.cn/vip_mfyg520.html?notech=1',
      },
      {
        o:'shangc',
        img:'shang_7.png',
        name:'福安有机农庄',
        url_web:'http://paullhjin.w.dlszyht.com.cn/self_define/phone.php?username=paullhjin&notech=1?notech=1?notech=1?notech=1?notech=1',
        url_pc:'http://paullhjin.w.dlszyht.com.cn/vip_paullhjin.html?notech=1',
      },
      {
        o:'shangc',
        img:'shang_8.png',
        name:'APOSO艾波索黑金砖',
        url_web:'http://szaposo.w.dlszyht.com.cn/self_define/phone.php?username=szaposo&notech=1?notech=1?notech=1',
        url_pc:'http://szaposo.w.dlszyht.com.cn/vip_szaposo.html?notech=1',
      },
    ],
    yingx:[
      {
        o:'yingx',
        img:'yingx_1.png',
        name:'保定市永丰厨房设备有限公司官网',
        url_web:'http://www.bdyongfeng.com/?notech=1',
        url_pc:'http://www.bdyongfeng.com/?notech=1',
      },
      {
        o:'yingx',
        img:'yingx_2.png',
        name:'XPEL官网',
        url_web:'http://www.v-mclub.com/?notech=1',
        url_pc:'http://www.v-mclub.com/?notech=1',
      },
      {
        o:'yingx',
        img:'yingx_3.png',
        name:'花千骨气球官网',
        url_web:'http://huaqiangu88.w.dlszyht.com.cn/self_define/phone.php?username=huaqiangu88&notech=1?notech=1?notech=1',
        url_pc:'http://huaqiangu88.w.dlszyht.com.cn/vip_huaqiangu88.html?notech=1',
      },
      {
        o:'yingx',
        img:'yingx_4.png',
        name:'微智云端官网',
        url_web:'http://suchkids.w.dlszyht.com.cn/self_define/phone.php?username=suchkids&notech=1?notech=1?notech=1?notech=1?notech=1',
        url_pc:'http://suchkids.w.dlszyht.com.cn/vip_suchkids.html?notech=1',
      },
      {
        o:'yingx',
        img:'yingx_5.png',
        name:'长城长',
        url_web:'http://fander.w.dlszyht.com.cn/self_define/phone.php?username=fander&notech=1?notech=1?notech=1',
        url_pc:'http://fander.w.dlszyht.com.cn/vip_fander.html?notech=1',
      },
      {
        o:'yingx',
        img:'yingx_6.png',
        name:'澳镁达',
        url_web:'http://www.zsaxm.com/?notech=1',
        url_pc:'http://www.zsaxm.com/?notech=1',
      },
      {
        o:'yingx',
        img:'yingx_7.png',
        name:'Flower shop',
        url_web:'http://www.cfu2008.vip/',
        url_pc:'http://www.cfu2008.vip/',
      },
      {
        o:'yingx',
        img:'yingx_8.png',
        name:'爱艺教育',
        url_web:'http://www.aiyijiaoyu.com/?notech=1',
        url_pc:'http://www.aiyijiaoyu.com/?notech=1',
      },
    ],
    App:[
      {
        o:'App',
        img:'app_bg_1.png',
        name:'廊坊生活',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'App',
        img:'app_bg_2.png',
        name:'北斗星',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'App',
        img:'app_bg_3.png',
        name:'瑜伽训练',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'App',
        img:'app_bg_4.png',
        name:'全民头条',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'App',
        img:'app_bg_5.png',
        name:'奈丝',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'App',
        img:'app_bg_6.png',
        name:'金巧剪造型',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'App',
        img:'app_bg_7.png',
        name:'乐途拼车',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'App',
        img:'app_bg_8.png',
        name:'华力拍卖',
        url_web:'#',
        url_pc:'#',
      },
    ],
    wx_gzh:[
      {
        o:'wx_gzh',
        img:'weixin_bg_1.png',
        name:'车惠同城',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_gzh',
        img:'weixin_bg_2.png',
        name:'艺品万家',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_gzh',
        img:'weixin_bg_3.png',
        name:'艺典商城',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_gzh',
        img:'weixin_bg_4.png',
        name:'第柒食客分销商城',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_gzh',
        img:'weixin_bg_5.png',
        name:'佳成果儿',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_gzh',
        img:'weixin_bg_6.png',
        name:'好心情营销管理平台',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_gzh',
        img:'weixin_bg_7.png',
        name:'廊都医院',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_gzh',
        img:'weixin_bg_8.png',
        name:'华山医院门诊服务',
        url_web:'#',
        url_pc:'#',
      },
    ],
    wx_xcx:[
      {
        o:'wx_xcx',
        img:'xcx_bg_1.png',
        name:'知识付费',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_xcx',
        img:'xcx_bg_2.png',
        name:'新知榜',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_xcx',
        img:'xcx_bg_3.png',
        name:'国管',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_xcx',
        img:'xcx_bg_4.png',
        name:'玩物得志',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_xcx',
        img:'xcx_bg_5.png',
        name:'开拼啦',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_xcx',
        img:'xcx_bg_6.png',
        name:'大河票物网',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_xcx',
        img:'xcx_bg_7.png',
        name:'跑胡子小程序游戏',
        url_web:'#',
        url_pc:'#',
      },
      {
        o:'wx_xcx',
        img:'xcx_bg_8.png',
        name:'夏之空电影电视剧',
        url_web:'#',
        url_pc:'#',
      },
    ],
    quanw:[
      {
        o:'quanw',
        img:'qwtg_bg_1.png',
        name:'佛山市爱喜全铝定制家具有限公司',
        url_web:'./detail_pages.html',
        url_pc:'./detail_pages.html',
      },
      {
        o:'quanw',
        img:'qwtg_bg_2.png',
        name:'钥声和谐景观石有限公司',
        url_web:'./detail_pages.html',
        url_pc:'./detail_pages.html',
      },
      {
        o:'quanw',
        img:'qwtg_bg_3.png',
        name:'澳松建材',
        url_web:'./detail_pages.html',
        url_pc:'./detail_pages.html',
      },
      {
        o:'quanw',
        img:'qwtg_bg_4.png',
        name:'霸州康仙庄',
        url_web:'./detail_pages.html',
        url_pc:'./detail_pages.html',
      },
      {
        o:'quanw',
        img:'qwtg_bg_5.png',
        name:'和润环保',
        url_web:'./detail_pages.html',
        url_pc:'./detail_pages.html',
      },
      {
        o:'quanw',
        img:'qwtg_bg_6.png',
        name:'金祈发金',
        url_web:'./detail_pages.html',
        url_pc:'./detail_pages.html',
      },
      {
        o:'quanw',
        img:'qwtg_bg_7.png',
        name:'瑞川广告',
        url_web:'./detail_pages.html',
        url_pc:'./detail_pages.html',
      },
      {
        o:'quanw',
        img:'qwtg_bg_8.png',
        name:'刮刮卡印刷',
        url_web:'./detail_pages.html',
        url_pc:'./detail_pages.html',
      },
    ],
  }
  // data结束


  // 拿到当前连接的对应案例数据
  var str1 = '';
  var data_new = data[i];
  var o = i;
  console.log(i);
  console.log(data_new.length);
  for(var i = 0;i<data_new.length;i++){
    str1 = str1 + '<li> <a target="_blank" href="'+ data_new[i].url_pc + '?id=' + data_new[i].img + '&box_id=' + data_new[i].o +'"><article> <img src="https://yeqingyu-bucket.oss-cn-beijing.aliyuncs.com/weilian.mcdull.club/static/al_img/'+ data_new[i].o + '/' + data_new[i].img +'"><summary>儿童教育品牌网站策划</summary></article></a><div class="info"><h5> <a target="_blank" href="'+ data_new[i].url_pc +'"> '+ data_new[i].name +' </a> </h5><div class="fr"> <a class="case_pc" target="_blank" href="'+ data_new[i].url_pc +'"></a> <a class="case_phone" target="_blank" href="'+ data_new[i].url_web +'"></a> </div></div></li>';
  }
  // console.log(str1);
  $('#list_box').html(str1);

  if(window.location.href.indexOf('quanw') != -1
     ||window.location.href.indexOf('app2') != -1
     ||window.location.href.indexOf('wx_gzh') != -1
     ||window.location.href.indexOf('wx_xch') != -1
  ){
    $('#list_box li a').prop('href','javascript:;');
    
  }
})
